package tr.helper.repository.table;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import tr.helper.repository.annotation.DbFiled;
import tr.helper.repository.annotation.Table;

/**
 * tr-service
 *
 * @author MrYe
 * @date 2022-01-12 18:28
 */
@Table
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ServerInfo {

    @DbFiled(value = "id", primary = true)
    private Long id;
    private String name;
    private String host;
    private Integer port;
    private String username;
    private String password;
    private String sourceJar;
    private String targetJar;
    private String serverAppRoot;
    private Integer appPort;
    private Integer deleted;
    private String startExt;
    private String type;
    /**
     * 服务状态 0未部署 1部署中 2部署成功，端口未启 3服务启动成功 4部署失败
     */
    private String status;
    private Date created;

}
